package son.hut.vn.app.json;

/**
 * @author sonnv6207
 * 
 *  CommonInfo uses to save common http response
 */
public class CommonInfo
{
    protected int success;

    protected int status;

    protected String message;

    /**
     * CommonInfo constructor
     * 
     */
    public CommonInfo()
    {
        this.success = 0;
        this.status = 0;
        this.message = "";
    }

    /**
     * CommonInfo constructor
     * 
     * @param success
     * @param message
     */
    public CommonInfo(int success, int status, String message)
    {
        this.success = success;
        this.status = status;
        this.message = message;
    }

    /**
     * @return
     */
    public int getSuccess()
    {
        return success;
    }

    /**
     * @param success
     */
    public void setSuccess(int success)
    {
        this.success = success;
    }

    /**
     * @return the status
     */
    public int getStatus()
    {
        return status;
    }

    /**
     * @param status the status to set
     */
    public void setStatus(int status)
    {
        this.status = status;
    }

    /**
     * @return the message
     */
    
    public String getMessage()
    {
        return message;
    }

    /**
     * @param message the message to set
     */
    
    public void setMessage(String message)
    {
        this.message = message;
    }

}
